import { Loading } from 'vant';
import http from '../request'

/**
 * get第二个参数、post第三个参数   可以设置 custom额外参数 用于请求拦截器自定义Loading
 */
// 获取banner
export const getBanner = async () => await http.get('/banner');

// 登录
export const login = (data) => http.post('/login/cellphone', data, { custom: { loading: true, loadingMsg: "登录中" } });

// 登出
export const logOut = async (data) => await http.post('/logout');

// 登录状态
export const loginStatus = async (data) => await http.get('/login/status');

// 获取用户详情
export const userDetail = async (data) => await http.post('/user/detail', data);

//云贝
export const yunbei = async (data) => await http.get('/yunbei');

//云贝今日签到信息
export const yunbeiToday = async (data) => await http.get('/yunbei/today');

//云贝签到
export const yunbeiSign = async (data) => await http.get('/yunbei/sign');

//云贝账户信息
export const yunbeiInfo = async (data) => await http.get('/yunbei/info', { custom: { loading: true } });

//获取用户信息 , 歌单，收藏，mv, dj 数量
export const userPlaylist = async (data) => await http.get('/user/playlist', { params: data }, { custom: { loading: true } });




